﻿using Microsoft.AspNetCore.Mvc;

namespace GroupTwo_MVC.Controllers
{
    public class RBACController : Controller
    {
        private readonly IConfiguration _configuration;

        public RBACController(IConfiguration configuration)
        {
            _configuration = configuration;
        }
        /// <summary>
        /// 主界面
        /// </summary>
        /// <returns></returns>
        public IActionResult HostMain()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 部门查询
        /// </summary>
        /// <returns></returns>
        public IActionResult GetDepart()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 角色列表
        /// </summary>
        /// <returns></returns>
        public IActionResult GetRole()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 角色添加
        /// </summary>
        /// <returns></returns>
        public IActionResult AddRole()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 用户查询
        /// </summary>
        /// <returns></returns>
        public IActionResult GetUser()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        ///用户添加
        /// </summary>
        /// <returns></returns>
        public IActionResult AddUser()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }

        /// <summary>
        /// 权限/菜单添加
        /// </summary>
        /// <returns></returns>
        public IActionResult AddMenu()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
        /// <summary>
        /// 权限/菜单列表
        /// </summary>
        /// <returns></returns>
        public IActionResult GetMenu()
        {
            ViewBag.BaseUrl = _configuration.GetSection("BaseUrl").Get<string>();
            return View();
        }
    }
}
